<!DOCTYPE html>
<html>

<head>
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta http-equiv="content-type" content="text/html">
    <meta charset="UTF-8">
    <meta content="always" name="referrer">
    <meta name="theme-color" content="#2932e1">
    <link href="../163/style/163css.css?20170908" rel="stylesheet" />
    <style type="text/css">
        .selectedStyle {
            display: block;
            width: 100%;
            height: 100%;
            box-sizing: border-box;
            background: #ff5555;
            border: 1px solid #222;
            outline: none;
            -webkit-appearance: none;
            padding: 0 5px;
            line-height: inherit;
            color: inherit;
            cursor: default;
            font-size: 14px;
            position: relative;
            z-index: 3;
        }
    </style>
    <title>网易</title>
</head>

<body class="body">
    <!-- top -->
    <div class="top">
        <div class="toplogoleft">
            <img src="../sources/onepice1.jpeg" style="width:auto;height:auto;max-width:100%;max-height:100%"> </div>
        <div class="toptitle">网易云音乐</div>
        <div class="toplogoright">
            <img src="../sources/onepice2.jpeg" style="width:auto;height:auto;max-width:100%;max-height:100%">
        </div>
    </div>
    <!-- nav -->
    <div class="nav">
        <div class="navselected">
            <select name="选择动漫" id="mySelectcarton" onchange="selectchange(this.value)" class="selectedStyle"> 
                        <option value="火影忍者0">火影忍者</option> 
                        <option value="海贼王1">海贼王</option> 
                        </select>
        </div>
        <div class="navselected">
            <select name="选择游戏" id="mySelectgame" onchange="selectchange(this.value)"> 
        <option value="王者荣耀0">王者荣耀</option> 
        <option value="魂斗罗：归来1">魂斗罗：归来</option> 
        </select>
        </div>
    </div>
    <div class="bodybg">
        <div class="bodyleft"> left <button onclick="showalert()">click</button></div>
        <div class="bodycontent">sdfsdf</div>
        <div class="bodyright">right</div>
    </div>
</body>

</html>

<script src="jquery.min.js" type="text/javascript"></script>
<script language="javascript" type="text/javascript">
    $(document).ready(function () {
        　　　　$('#mySelectcarton').change(function () {
            　　　　　　alert($(this).children('option:selected').val());
            　　　　　　var p1 = $(this).children('option:selected').val();//这就是selected的值  
            　　　　　　var p2 = $('#param2').val();//获取本页面其他标签的值  
            alert("asdfaf");
            // 　　　　　　window.location.href = "xx.php?param1=" + p1 + "m2=" + p2 + "";//页面跳转并传参  
        　　　　})
        $('#mySelectgame').change(function () {
            　　　　　　alert($(this).children('option:selected').val());
            　　　　　　var p1 = $(this).children('option:selected').val();//这就是selected的值  
            　　　　　　var p2 = $('#param2').val();//获取本页面其他标签的值  
            // 　　　　　　window.location.href = "xx.php?param1=" + p1 + "m2=" + p2 + "";//页面跳转并传参  
        　　　　})
    })
    function showalert() {
        alert("showalert");
    }
    function selectchange(s) {
        alert(s);

    }
</script>